﻿@using com.hyrentals.webcommon.configuration
@using com.hyrentals.webcommon.extensions
@using com.hyrentals.webportal.Config

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>hyrentals</title>
    @Html.AttachStyles("css", "base", "global")
    @Html.WriteStyles()
    @*<link rel="icon" href="@string.Format("{0}static/favicon.ico", ImageConfig.IMAGE_CDN_SERVER)" type="image/x-icon" />*@
     @Html.AttachScript("js/jquery-1.7")
    <script type="text/javascript">
        $(function () {
            try {
                if ($.browser.msie) {
                    var oldtitle = document.title;
                    if (oldtitle.indexOf('#') != -1) oldtitle = oldtitle.substring(0, wT.indexOf('#'));
                    setInterval(function () {
                        document.title = oldtitle;
                    }, 500)
                };
            } catch (err) { }
        });
    </script>
    @Html.AttachScripts("kissy", "kissy", "suggest", "uibase", "component", "dd", "validation", "overlay", "switchable")
    @Html.AttachScripts("fgt", "core", "auth", "ui")
    
    @Html.WriteConfigScript() 
    @Html.WriteJSConfigs()

    @Html.WriteHeadScripts()
</head>
<body>
    @Html.Partial("w_LoginDialog")
    <div id="page">
       <div id="nav">
            <div id="nav-inner">
                <a class="logo" href="@Url.Content("~/")"><img width="183" height="46" src="@string.Format("{0}{1}", ImageConfig.IMAGE_CDN_SERVER, "static/img/logo.png")" alt="hyrentals" /></a>
                <div id="user_status">
                @Html.Partial("w_User_Logged_Out")
                @Html.Partial("w_User_Logged_In")
                </div>
            </div>
        </div>
        <div id="main-content">@RenderBody()</div>

      @*  @Html.Partial("w_Footer")*@

        @*<a href="javascript:;" id="goto_top" style="visibility: hidden;">返回顶部</a>*@
    </div>

    @{Html.AddOverlay("user_popup", Html.Partial("w_userPopup"));}
    @Html.WriteOverlays()
    @Html.AttachScripts("js", "global")
    @Html.WriteTailScripts()

</body>
</html>
